package com.food.user.exception.accountException;

public enum AccountExceptionCode {
    ACCOUNT_NOT_EXIST(2001,"管理员账号不存在！"),
    ACCOUNT_PASSWORD_ERROR(2002,"密码错误，请重试！"),
    ACCOUNT_STATE_ERROR(2003,"该账户已被冻结或删除，请联系超级管理员"),
    ACCOUNT_IS_EXIST(2004,"账户名重复！"),
    ACCOUNT_UPDATE_ERROR(2005,"修改失败"),
    ACCOUNT_YIBEIJINGYONG(2006,"管理员已被禁用"),
    ACCOUNT_YIBEISHANCHU_HUIFU(2007,"管理员已被删除，请先恢复"),
    ACCOUNT_YIBEISHANCHU(2008,"管理员已被删除"),
    ACCOUNT_YIBEIQIYONG(2009,"管理员已被启用"),
    UPDATE_PASSWORD_OLD_ERROR(2010,"老密码不对，请核对后输入"),
    UPDATE_PASSWORD_OLD_NEW(2011,"新密码不能与老密码一样！");
    Integer code;
    String message;

    AccountExceptionCode(Integer code, String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode(){return code;}
    public String getMessage(){return message;}
}
